package com.pan.admin.module.channel.entity;

import com.pan.admin.common.annotation.Excel;
import com.pan.admin.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 渠道关联产品对象 loan_channel_product
 *
 * @author ts
 * @date 2023-09-18
 */
public class LoanChannelProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id主键
     */
    private Long id;

    /**
     * 渠道主键id
     */
    @Excel(name = "渠道主键id")
    private Long loanChannelId;

    /**
     * 机构主键id
     */
    @Excel(name = "机构主键id")
    private Long loanProductId;

    /**
     * 机构名称
     */
    @Excel(name = "机构名称")
    private String name;

    /**
     * 排序值(越大越靠前)
     */
    @Excel(name = "排序值(越大越靠前)")
    private Long sort;
    /**
     * 状态(0禁用，1启用)
     */
    @Excel(name = "状态(0禁用，1启用)")
    private Integer status;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setLoanChannelId(Long loanChannelId) {
        this.loanChannelId = loanChannelId;
    }

    public Long getLoanChannelId() {
        return loanChannelId;
    }

    public void setLoanProductId(Long loanProductId) {
        this.loanProductId = loanProductId;
    }

    public Long getLoanProductId() {
        return loanProductId;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("loanChannelId", getLoanChannelId())
                .append("loanProductId", getLoanProductId())
                .append("sort", getSort())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
